package ptij.verifier.test.grammar;

import ptolemy.actor.*;
import ptolemy.kernel.*;
import ptolemy.kernel.util.*;

// Teste de while
public class While1 extends AtomicActor {

   public While1(CompositeEntity container, String name) throws
           NameDuplicationException, IllegalActionException {
       super(container, name);
   }

   public void fire() throws IllegalActionException {   
       int a = 10;
       int i = 0;
       while(i < a) {
          System.out.println(2 * i + 1);       
          i++;
       }   
   }

}
